package com.zc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zc.dao.ZcInfoMapper;
import com.zc.po.ZcInfo;
import com.zc.service.ZcInfoService;

@Service
public class ZcInfoServiceImpl implements ZcInfoService {
	@Autowired
	private ZcInfoMapper zcInfoMapper;

	@Override
	public Object selectAll() {
		List<ZcInfo> all = zcInfoMapper.selectAll();
		return all;
	}

	@Override
	public void insertSelective(ZcInfo zcInfo) {
		zcInfoMapper.insertSelective(zcInfo);
		
	}

	@Override
	public Object selectByPrimaryKey(String zc_id) {
		ZcInfo key = zcInfoMapper.selectByPrimaryKey(zc_id);
		return key;
	}

	@Override
	public void updateByPrimaryKeySelective(ZcInfo zcInfo) {
		zcInfoMapper.updateByPrimaryKeySelective(zcInfo);
		
	}

	@Override
	public void deleteByPrimaryKey(String zc_id) {
		zcInfoMapper.deleteByPrimaryKey(zc_id);
		
	}

	@Override
	public Object selectByDept(String dept) {
		List<ZcInfo> list = zcInfoMapper.selectByDept(dept);
		return list;
	}

	@Override
	public Object selectByType(String type) {
		List<ZcInfo> list = zcInfoMapper.selectByType(type);
		return list;
	}

	@Override
	public Object selectByTypeAndDept(ZcInfo zi) {
		List<ZcInfo> list = zcInfoMapper.selectByTypeAndDept(zi);
		return list;
	}
}
